package com.bo.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author huangbo
 * @version 1.0.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result {
    private Integer code;
    private String msg;
    private Object data;
    public static Result success(){
        return new Result(1,"success",null);
    }
    public static Result success(Object object){
        return new Result(1,"success",object);
    }
    public static Result error(String msg){
        return new Result(0,msg,null);
    }
}
